
// 通过 JSON 格式的字符串创建数组
let x = [];

x.push( 23 ); // x[ x.length > 0 ? x.length - 1 : 0 ] = 23 ; 
console.log( x );

x.push( 34 ); // x[ x.length > 0 ? x.length - 1 : 0 ] = 34 ; 
console.log( x );

let newLength = x.push( 11 , 45 , 2 , 3 , 6 , 56 , 7 );
console.log( newLength );
console.log( x.length );
console.log( x.toString() );
